<template>
  <div>
    <van-cell-group>
      <van-cell
        :title="item"
        :data-item="item"
        v-for="item,index in data"
        :key="index"
        @click="goProduct(item)"
      />
    </van-cell-group>
    <div class="nomore"> 没有更多了 </div>
  </div>
</template>

<script>
export default {
    props:["data"],
  data() {
    return {};
  },
  methods:{
    goProduct(val){
      this.$emit("fn",val)
    }
  }
};
</script>
 
<style lang = "less" scoped>
.nomore{
    text-align: center;
    font-size: 14px;
    color: #999;
    padding: 10px 0;
    background-color: #fff;
}
</style>